package com.pro.common.api.model;

import com.pro.framework.javatodb.annotation.JTDField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;


@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public abstract class BaseUserModel extends BaseUserIdModel implements IUserClass {
//    @Schema(description = "用户Id")
//    @JTDField(entityName = "user.user", entityClassKey = "id", entityClassTargetProp = "id", entityClassLabel = "username")
//    private Long userId;
    @Schema(description = "用户名")
    @JTDField(entityName = "user.user", entityClassKey = "id", entityClassTargetProp = "username", entityClassLabel = "username")
    private String username;
    @Schema(description = "内部")
    @JTDField(entityName = "user.user", entityClassKey = "id", entityClassTargetProp = "isDemo", entityClassLabel = "username")
    private Boolean isDemo;

}
